package lysjmaster.base.common;

/**
 * @author Created by zk on 2019-11-28 18:33
 * @description 常量
 */
public interface CommonConstant {
    Integer DEL_FLAG = -1;

    Integer NORMAL_FLAG = 1;

    String UNKNOWN = "unknown";

    String TOKEN_HEADER_NAME = "authorized";

    String PROJECT_PATH = "lysjmaster.base";

    String SNOW_FLAKE_ID_STRATEGY = PROJECT_PATH + ".common.snowflake.SnowFlakeIdStrategy";

    /**
     * @author Created by zk on 2018/12/26 10:05
     * @Description 以下为基础实体的字段名 base.BaseEntity
     */
    String ID_NAME = "id";
    String NAME_NAME = "name";
    String CREATE_TIME_NAME = "createTime";
    String UPDATE_TIME_NAME = "updateTime";
    String DEL_FLAG_NAME = "delFlag";

    String ADMIN_ID = "1";

    String ADMIN_ISSUER = "Auth";
    Integer ADMIN_TOKEN_EXPIRATION = 60 * 12;//分钟数
    Integer ADMIN_TOKEN_REFRESH = 15;//分钟数

    String JWT_ISS = "iss";
    String JWT_SUB = "sub";

    String INTERFACE_PASSWORD = "lysj123..";//全局接口密码
    String JWT_PAYLOAD_KEY = "payload";//作为传输payload的key
}
